package reduce.fz.com.reduce.fragment;


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.custom.SettingItem;
import reduce.fz.com.reduce.fragment.base.BaseFragment;

/**
 * 设置Fragment
 */
public class SettingFragment extends BaseFragment implements View.OnClickListener{
    private SettingItem  mSiModifyInfo;
    private SettingItem mSiMessageSet;
    private SettingItem mSiSuggestion;
    private Context context;

    public SettingFragment() {
    }
    public void initWidget(View view){
        mSiModifyInfo= (SettingItem) view.findViewById(R.id.si_modfiy_info);
        mSiMessageSet=(SettingItem)view.findViewById(R.id.si_message_set);
        mSiSuggestion=(SettingItem)view.findViewById(R.id.si_suggestion);
        mSiModifyInfo.setOnClickListener(this);
        mSiMessageSet.setOnClickListener(this);
        mSiSuggestion.setOnClickListener(this);

    }
    public void forwardSetting()
    {
        Intent intent=new Intent(context,null);
        startActivity(intent);

    }



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view= inflater.inflate(R.layout.fragment_setting, container, false);
        return view;
    }


    @Override
    public void onClick(View view) {

        switch (view.getId())
        {
            case R.id.si_modfiy_info:
                forwardSetting();
                break;
            default:
                break;
        }

    }
}
